Cocktail Help Reference
TotalItemCount Property
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IPager<T> Interface : TotalItemCount Property



Glossary Item Box

Returns the total number of items returned.

Syntax

Visual Basic (Declaration) 
ReadOnly Property TotalItemCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As IPager(Of T)
Dim value As Integer
 
value = instance.TotalItemCount
C# 
int TotalItemCount {get;}
C++/CLI 
property int TotalItemCount {
   int get();
}

Remarks

This property will return -1 until all pages are fetched or the TotalDataSourceItemCount is known. The number will be an approximation when a large number of inserts and deletes have occurred.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.